package com.ygou.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ygou.mapper.SkuAttrvalMapper;
import com.ygou.pojo.SkuAttrval;
import com.ygou.pojo.SkuAttrvalExample;
import com.ygou.service.SkuAttrvalService;

@Service
public class SkuAttrvalServiceImpl implements SkuAttrvalService{
	@Autowired
	SkuAttrvalMapper sam;

	public SkuAttrvalMapper getSam() {
		return sam;
	}

	public void setSam(SkuAttrvalMapper sam) {
		this.sam = sam;
	}

	@Override
	public List<SkuAttrval> showAll() {
		SkuAttrvalExample ex=new SkuAttrvalExample();
		com.ygou.pojo.SkuAttrvalExample.Criteria c=ex.createCriteria();
		List<SkuAttrval> list=sam.selectByExample(ex);
		return list;
	}
	
}
